import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '金额',
            dataIndex: 'amount',
            width: 200,
        },
        {
            title: '存款银行（1农业，2中国，3交通）',
            dataIndex: 'depositBank',
            width: 200,
        },
        {
            title: '存款凭证图',
            dataIndex: 'voucherImg',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'remark',
            width: 200,
        },
        {
            title: '财务审核状态（1审核中，2通过审核，3未通过审核）',
            dataIndex: 'isCheck',
            width: 200,
        },
        {
            title: '所属销售',
            dataIndex: 'employeeId',
            width: 200,
        },
        {
            title: '所属机场',
            dataIndex: 'airportId',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'reason',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '金额',
            field: 'amount',
            component: 'Input',
            required: true,
        },
        {
            label: '存款银行（1农业，2中国，3交通）',
            field: 'depositBank',
            component: 'Input',
            required: true,
        },
        {
            label: '存款凭证图',
            field: 'voucherImg',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'remark',
            component: 'Input',
            required: true,
        },
        {
            label: '财务审核状态（1审核中，2通过审核，3未通过审核）',
            field: 'isCheck',
            component: 'Input',
            required: true,
        },
        {
            label: '所属销售',
            field: 'employeeId',
            component: 'Input',
            required: true,
        },
        {
            label: '所属机场',
            field: 'airportId',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'reason',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
